#include <QCoreApplication>
#include <iostream>

using namespace std;

void ex_1()
{
    bool flag;
    char cval;
    short sval;
    unsigned short usval;
    int ival;
    unsigned int uival;
    long lval;
    unsigned long ulval;
    float fval;
    double dval;

    cout << 3.14159L + 'a' << endl;
    cout << dval + ival << endl;
    cout << dval + fval << endl;
//    cout << ival = dval << endl;
//    cout << flag = dval << endl;
    cout << cval + fval << endl;
    cout << sval + cval << endl;
    cout << cval + lval << endl;
    cout << ival + lval << endl;
    cout << ival + ulval << endl;
    cout << usval + ival << endl;
    cout << uival + ival << endl;
}

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);



    return a.exec();
}
